package com.richman.view;

import java.awt.BorderLayout;
import java.awt.Container;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.richman.ps38.entity.Event;
import com.richman.ps38.entity.HGEvent;
import com.richman.ps38.entity.ISNPS38Event;
import com.richman.ps38.entity.ISNEvent;

public class EventWindowPane extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 11L;
	
	public EventWindowPane(){
        intiComponent();  
      
	}
	
	

	
	
	private JTabbedPane jTabbedpane = new JTabbedPane();// ���ѡ������  


	//HGAccountPane hgAccountPane = new HGAccountPane();
	
	HGEventPane hgEventPane = new HGEventPane();
	
	PS38EventPane ps38EventPane = new PS38EventPane();

	ISNEventPane isnEventPane = new ISNEventPane();
	
	
	HGPS38EventPane hgps38EventPane = new HGPS38EventPane();

    private void intiComponent()  
    {  

		setLayout(new BorderLayout());
		

		add(jTabbedpane);  
		
		//jTabbedpane.add(hgAccountPane,"SB");
		
	//	jTabbedpane.add(hasBetListPane,"已投赛事");
		
		jTabbedpane.add(hgEventPane,"HG赛事");
		
		jTabbedpane.add(isnEventPane,"ISN赛事");
		
		jTabbedpane.add(ps38EventPane,"PS38赛事");

		jTabbedpane.add(hgps38EventPane,"ISN & PS38赛事");

        setBounds(100, 100, 1220, 630); 

    }

	public void updateHGEventsTable(Vector<HGEvent> events) {
		hgEventPane.updateHGEventTable(events);
	}

	public void updatePS38EventsTable(Vector<Event> events) {
		ps38EventPane.updatePS38EventTable(events);
	}
	
	public void updateISNEventsTable(Vector<ISNEvent> events) {
		isnEventPane.updateISNEventTable(events);
	}
	
	
	
	public void updateHGPS38EventsTable(Vector<ISNPS38Event> events) {
		hgps38EventPane.updateHGPS38EventTable(events);
	}
	
}
